package com.neuedu.scope;

import com.neuedu.scope.controller.UserController;
import com.neuedu.scope.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(SecondAppConfig.class)
public class FirstAppConfig {

    @Bean
    public UserController userController(UserService userService){
        UserController userController = new UserController();
        userController.setUserService(userService);

        return userController;
    }


}
